package com.oig.base.api.fallback;

import com.oig.base.api.EnumService;
import com.oig.sys.base.vo.EnumVo;
import lombok.Setter;
import lombok.extern.slf4j.Slf4j;

import java.util.Map;

@Slf4j
public class EnumServiceFallBackImpl implements EnumService {

    @Setter
    private Throwable cause;

    @Override
    public EnumVo getByCode(String dictCode) {
        log.info("feign getByCode error :{}", dictCode);
        log.error("feign getByCode error ", cause);
        return null;
    }


    @Override
    public Map<String, Map<String, String>> getAllEnumItem() {
        log.error("feign getAllEnumItem error ", cause);
        return null;
    }

}
